package com.lxk.service;

import com.lxk.pojo.Shop;
import com.lxk.vo.PageModel;

import java.util.List;

/**
 * @author JohnSoybean
 * @create 2020/3/24 15:19
 * @description
 */
public interface ShopService {

    /**
     * 获取商店列表
     * @return
     */
    List<Shop> getShopList();

    /**
     * 获取商家总页数
     * @param num
     * @return
     */
    Integer getTotalPages(Integer num);

    /**
     * 获取商家分页
     * @param pageIndex
     * @param num
     * @param totalPages
     * @param sort
     * @param order
     * @return
     */
    PageModel<Shop> selShopPage(Integer pageIndex, Integer num, Integer totalPages, Integer sort, Integer order);

    /**
     * 按id查找商家
     * @param shopId
     * @return
     */
    Shop selShopById(Integer shopId);

    /**
     * 更新商品信息
     * @param goods
     * @return
     */
    Integer modifyShopInfo(Shop shop);

    /**
     * 删除商家
     * @param shopId
     * @return
     */
    Integer deleteShop(Integer shopId);

    /**
     * 添加商家
     * @param shop
     * @return
     */
    Integer addShop(Shop shop);

}
